/** @format */

const inquirer = require("inquirer");
const myconfig = require("../../config");
const downFn = require("./download");

module.exports.myAction = async (project, args) => {
  const answer = await inquirer.prompt([
    {
      type: "list",
      name: "framwork",
      choices: myconfig.framwork,
      message: "选择框架",
    },
  ]);
  //   console.log(answer);
  downFn(answer.framwork, project);
};
